package cn.com.service.cs;

import java.util.List;
import java.util.Map;

import cn.com.commons.Paginator;
import cn.com.dal.dataobject.cs.OutsidecostDO;
import cn.com.support.message.MessageResult;

/**
 * 外委费用Service
 * @since 2012-4-2 下午7:53:05
 * @version 1.0
 * @author Microbun
 *
 */
public interface OutsidecostService {
	
	/**
	 * 分页查询外委费用
	 * 
	 * @param paginator
	 * @return
	 */
	<C> Paginator<C, List<OutsidecostDO>> selectByPage(
			Paginator<C, List<OutsidecostDO>> paginator);

	/**
	 * 根据ID查询外委费用
	 * 
	 * @param id
	 * @return
	 */
	MessageResult<OutsidecostDO> selectById(Long id);

	/**
	 * 插入外委费用
	 * 
	 * @param outsidecostDO
	 * @return
	 */
	MessageResult<Long> insert(OutsidecostDO outsidecostDO);

	/**
	 * 更新外委费用
	 * 
	 * @param outsidecostDO
	 * @return
	 */
	MessageResult<Integer> updateById(OutsidecostDO outsidecostDO);

	/**
	 * 根据ID删除外委费用
	 * 
	 * @param ids
	 *            外委费用ID数组
	 * @return
	 */
	MessageResult<Long> deleteById(Long[] ids);

	/**
	 * 根据条件查询部门
	 * 
	 * @param params
	 * @return
	 */
	List<OutsidecostDO> selectList(Map<Object, Object> params);
}
